//
// Created by SXY on 2023/8/1.
//

#ifndef __DRIVER_UI_H
#define __DRIVER_UI_H

#include "main.h"
#include "bsp_judge.h"
#include "driver_chassis.h"

typedef struct {
    uint8_t SC_flag;        // 0 未使用电容   1 使用电容
    uint8_t chassisMode;    // 底盘状态
    uint8_t fric_status;    // 摩擦轮状态
    uint8_t auto_status;    // 自瞄状态
    float SC_proportion;    // 电容可用容量，范围0~1

    float pitch_angle;      // pitch 角度
    float yaw_angle;        // yaw 角度(顺时针为正，角度已经进行过归一化)
    uint8_t err_status;     // 优先级最高的system_err
    uint8_t Vision_Success;
} UI_Info_t;

void Draw_UI(uint8_t clearFlag);
void update_UI_info(void);
void Draw_Circle(graphic_data_struct_t *Circle_Frame);

extern uint8_t Check_Flag;
#endif //__DRIVER_UI_H
